import dayjs from 'dayjs';

export const formatDate = (time:any, format:string) => {
  const formatStyle:string = format ?? 'YYYY-MM-DD HH:mm:ss'
  return dayjs(time).format(formatStyle)
} 
